package equipement;

public class Materiel extends Objet {
	private EMateriel materiel;
	private double poids;
	
	public Materiel(EMateriel materiel){
		this.materiel = materiel;
		
		switch(materiel){
		case Ration :
			this.poids = 0.5;
			break;
		case CordeEnChanvre :
			this.poids = 5;
			break;
		case BelierPortable :
			this.poids = 10;
			break;
		}
	}
	
	public EMateriel getMateriel() {
		return materiel;
	}

	public double getPoids() {
		return poids;
	}

	public String toString() {
		String res = this.materiel.toString() + " (" + this.poids + " kg)";
		return res;
	}
}
